// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : MultiServerEngine | ServerFramework | CharacterMap.cs
// //  Created : 2016 - 02 - 16 20:53
// //  Modified: 2016 - 02 - 20 12:32
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using ServerFramework.Implementation.Database.Domain;

namespace ServerFramework.Implementation.Database.Mapping
{
    public class CharacterMap : ClassMap<Character_T>
    {
        public CharacterMap()
        {
            Schema("mseauth");
            Table("characters");
            Id(x => x.Guid).GeneratedBy.Identity().Column("Guid");
            Map(x => x.Gameaccountid).Column("GameAccountId").Not.Nullable();
            Map(x => x.Realmid).Column("RealmId").Not.Nullable();
            Map(x => x.Name).Column("Name").Not.Nullable();
            Map(x => x.Listposition).Column("ListPosition").Not.Nullable();
            Map(x => x.Race).Column("Race").Not.Nullable();
            Map(x => x.Class).Column("Class").Not.Nullable();
            Map(x => x.Sex).Column("Sex").Not.Nullable();
            Map(x => x.Skin).Column("Skin").Not.Nullable();
            Map(x => x.Face).Column("Face").Not.Nullable();
            Map(x => x.Hairstyle).Column("HairStyle").Not.Nullable();
            Map(x => x.Haircolor).Column("HairColor").Not.Nullable();
            Map(x => x.Facialhairstyle).Column("FacialHairStyle").Not.Nullable();
            Map(x => x.Experience).Column("Experience").Not.Nullable();
            Map(x => x.Zone).Column("Zone").Not.Nullable();
            Map(x => x.Map).Column("Map").Not.Nullable();
            Map(x => x.X).Column("X").Not.Nullable();
            Map(x => x.Y).Column("Y").Not.Nullable();
            Map(x => x.Z).Column("Z").Not.Nullable();
            Map(x => x.O).Column("O").Not.Nullable();
            Map(x => x.Guildguid).Column("GuildGuid").Not.Nullable();
            Map(x => x.Firstlogin).Column("FirstLogin").Not.Nullable();
        }
    }
}
